﻿using DFGK_WMS.Model.DTO;
using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.IRepository
{
    public interface IShelvesRepository: IBaseRepository<TShelf>
    {
        /// <summary>
        /// 添加货架
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        bool AddShel(ShelvesDto obj,out string message);
        /// <summary>
        /// 修改货架信息
        /// </summary>
        /// <param name="u"></param>
        /// <returns></returns>
        bool UpdateShel(ShelvesDto u,out string message);
        /// <summary>
        /// 删除货架信息
        /// </summary>
        /// <param name="uid"></param>
        /// <returns></returns>
        bool DelShel(int uid);
        /// <summary>
        /// 显示货架信息
        /// </summary>
        /// <param name="hcode"></param>
        /// <param name="hname"></param>
        /// <param name="kid"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<ShelvesDto> GetShelList(string hname, int kid, int pageIndex, int pageSize, out int totalCount);
        /// <summary>
        /// 获取库房(仓库)信息
        /// </summary>
        /// <returns></returns>
        List<TWarehouse> GetTwarehouseList();
        /// <summary>
        /// 根据id获取数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        TShelf GetShelById(int id);

        /// <summary>
        /// 所属库区
        /// </summary>
        /// <returns></returns>
        List<Menuitem> GetWarehouseMenuitem();

        /// <summary>
        /// 根据库区选出货架
        /// </summary>
        /// <param name="aid"></param>
        /// <returns></returns>
        List<TShelf> GetAreaShelf(int aid);
    }
}
